// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addOrder POST /api/order/add */
export async function addOrderUsingPOST(
  body: API.OrderAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseOrderVO>('/api/order/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteOrder POST /api/order/delete */
export async function deleteOrderUsingPOST(
  body: API.OrderDeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/order/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editOrder POST /api/order/edit */
export async function editOrderUsingPOST(
  body: API.OrderEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/order/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listOrderVOByPage POST /api/order/list/page/vo */
export async function listOrderVOByPageUsingPOST(
  body: API.OrderQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageOrderVO>('/api/order/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** payOrder POST /api/order/pay */
export async function payOrderUsingPOST(
  body: API.OrderPayRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/order/pay', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
